/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * GoodsManagement.java
 *
 * Created on 2011-10-21, 9:27:07
 */
package JavaApplication1;

/**
 *
 * @author mengqingyi
 */
public class GoodsManagement extends javax.swing.JFrame {
	// Variables declaration - do not modify//GEN-BEGIN:variables
	
    private javax.swing.JPanel addNewGoodsPanel;
    private javax.swing.JPanel deleteOldGoodsPanel;
    private javax.swing.JPanel modifyGoodsInfoPanel;
    private javax.swing.JPanel modifyGoodsPanel;
    private javax.swing.JPanel newGoodsInfoInputPanel;
    private javax.swing.JPanel oldGoodsInfoInputPanel;
    
    private javax.swing.JTabbedPane basePanel;
    
    private javax.swing.JButton addButton;
    private javax.swing.JButton cancel1;
    private javax.swing.JButton cancel2;
    private javax.swing.JButton cancel3;
    private javax.swing.JButton deleteGoods;
    private javax.swing.JButton modify;
    private javax.swing.JButton showModifiedGoodsInfo;
    private javax.swing.JButton showOldGoodsInfo;
    private javax.swing.JButton yes1;
    private javax.swing.JButton yes2;
    private javax.swing.JButton yes3;
    
    private javax.swing.JScrollPane goodInfoAferModify;
    private javax.swing.JScrollPane modifiedGoodsIDInput;
    private javax.swing.JScrollPane newGoodsDescriptionInput;
    private javax.swing.JScrollPane newGoodsIDInput;
    private javax.swing.JScrollPane newGoodsInfoPanel;
    private javax.swing.JScrollPane newGoodsPriceInput;
    private javax.swing.JScrollPane oldGoodsIDInput;
    private javax.swing.JScrollPane oldGoodsList;
    private javax.swing.JScrollPane originalGoodsInfo;
    
    private javax.swing.JTable goodsInfoAfterModifyText;
    private javax.swing.JTable newGoodsInfoList;
    private javax.swing.JTable oldGoodsListtable;
    private javax.swing.JTable originalGoodsInfoTable;
    
    private javax.swing.JLabel goodsInfoAfterModifyLabel;
    private javax.swing.JLabel modifiedGoodsIDLabel;
    private javax.swing.JLabel newGoodsDescroptionLabel;
    private javax.swing.JLabel newGoodsIDLabel;
    private javax.swing.JLabel newGoodsInfoLabel;
    private javax.swing.JLabel newGoodsPriceLabel;
    private javax.swing.JLabel oldGoodsIDLabel;
    private javax.swing.JLabel originalGoodsInfoLabel;
    
    private javax.swing.JTextPane modifiedGoodsIDText;
    private javax.swing.JTextPane newGoodsDescriptionText;
    private javax.swing.JTextPane newGoodsIDText;
    private javax.swing.JTextPane newGoodsPriceText;
    private javax.swing.JTextPane oldGoodsIDText;
    
    // End of variables declaration//GEN-END:variables

    /** Creates new form GoodsManagement */
    public GoodsManagement() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        addNewGoodsPanel = new javax.swing.JPanel();
        newGoodsInfoInputPanel = new javax.swing.JPanel();
        deleteOldGoodsPanel = new javax.swing.JPanel();
        oldGoodsInfoInputPanel = new javax.swing.JPanel();
        modifyGoodsPanel = new javax.swing.JPanel();
        modifyGoodsInfoPanel = new javax.swing.JPanel();
        
        basePanel = new javax.swing.JTabbedPane();
        
        addButton = new javax.swing.JButton();
        yes1 = new javax.swing.JButton();
        cancel1 = new javax.swing.JButton();
        showOldGoodsInfo = new javax.swing.JButton();
        deleteGoods = new javax.swing.JButton();
        yes2 = new javax.swing.JButton();
        cancel2 = new javax.swing.JButton();
        showModifiedGoodsInfo = new javax.swing.JButton();
        modify = new javax.swing.JButton();
        yes3 = new javax.swing.JButton();
        cancel3 = new javax.swing.JButton();
        
        newGoodsIDInput = new javax.swing.JScrollPane();
        newGoodsDescriptionInput = new javax.swing.JScrollPane();
        newGoodsPriceInput = new javax.swing.JScrollPane();
        newGoodsInfoPanel = new javax.swing.JScrollPane();
        oldGoodsIDInput = new javax.swing.JScrollPane();
        modifiedGoodsIDInput = new javax.swing.JScrollPane();
        oldGoodsList = new javax.swing.JScrollPane();
        originalGoodsInfo = new javax.swing.JScrollPane();
        goodInfoAferModify = new javax.swing.JScrollPane();
        
        newGoodsInfoList = new javax.swing.JTable();
        originalGoodsInfoTable = new javax.swing.JTable();
        oldGoodsListtable = new javax.swing.JTable();
        goodsInfoAfterModifyText = new javax.swing.JTable();
        
        newGoodsIDLabel = new javax.swing.JLabel();
        newGoodsDescroptionLabel = new javax.swing.JLabel();
        newGoodsPriceLabel = new javax.swing.JLabel();
        newGoodsInfoLabel = new javax.swing.JLabel();
        oldGoodsIDLabel = new javax.swing.JLabel();
        modifiedGoodsIDLabel = new javax.swing.JLabel();
        originalGoodsInfoLabel = new javax.swing.JLabel();
        goodsInfoAfterModifyLabel = new javax.swing.JLabel();
        
        newGoodsIDText = new javax.swing.JTextPane();
        newGoodsDescriptionText = new javax.swing.JTextPane();
        newGoodsPriceText = new javax.swing.JTextPane();
        oldGoodsIDText = new javax.swing.JTextPane();
        modifiedGoodsIDText = new javax.swing.JTextPane();
        
        

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("商品管理");

        addNewGoodsPanel.setBackground(new java.awt.Color(211, 220, 249));

        newGoodsInfoInputPanel.setBackground(new java.awt.Color(211, 220, 249));
        newGoodsInfoInputPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "新商品引入", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        newGoodsIDLabel.setText("新商品标识：");

        newGoodsIDText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        newGoodsIDInput.setViewportView(newGoodsIDText);

        addButton.setText("添加");

        newGoodsDescroptionLabel.setText("新商品描述：");

        newGoodsDescriptionText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        newGoodsDescriptionInput.setViewportView(newGoodsDescriptionText);

        newGoodsPriceLabel.setText("新商品价格：");

        newGoodsPriceText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        newGoodsPriceInput.setViewportView(newGoodsPriceText);

        javax.swing.GroupLayout newGoodsInfoInputPanelLayout = new javax.swing.GroupLayout(newGoodsInfoInputPanel);
        newGoodsInfoInputPanel.setLayout(newGoodsInfoInputPanelLayout);
        newGoodsInfoInputPanelLayout.setHorizontalGroup(
            newGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(newGoodsInfoInputPanelLayout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addGroup(newGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(newGoodsIDLabel)
                    .addComponent(newGoodsDescroptionLabel)
                    .addComponent(newGoodsPriceLabel))
                .addGap(69, 69, 69)
                .addGroup(newGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(newGoodsPriceInput)
                    .addComponent(newGoodsIDInput, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                    .addComponent(newGoodsDescriptionInput, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(77, 77, 77)
                .addComponent(addButton)
                .addGap(78, 78, 78))
        );
        newGoodsInfoInputPanelLayout.setVerticalGroup(
            newGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(newGoodsInfoInputPanelLayout.createSequentialGroup()
                .addGroup(newGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(newGoodsInfoInputPanelLayout.createSequentialGroup()
                        .addGap(11, 11, 11)
                        .addGroup(newGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(newGoodsIDLabel)
                            .addComponent(newGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(newGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(newGoodsDescroptionLabel)
                            .addComponent(newGoodsDescriptionInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(newGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(newGoodsInfoInputPanelLayout.createSequentialGroup()
                                .addGap(26, 26, 26)
                                .addComponent(newGoodsPriceLabel))
                            .addGroup(newGoodsInfoInputPanelLayout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(newGoodsPriceInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(newGoodsInfoInputPanelLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(addButton)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        newGoodsInfoList.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        newGoodsInfoList.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "新商品标识", "新商品描述", "新商品价格"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, true, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        newGoodsInfoPanel.setViewportView(newGoodsInfoList);

        newGoodsInfoLabel.setFont(new java.awt.Font("方正舒体", 0, 14));
        newGoodsInfoLabel.setText("新商品信息");

        yes1.setText("确定");

        cancel1.setText("取消");
        cancel1.setToolTipText("取消");
        cancel1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancel1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout addNewGoodsPanelLayout = new javax.swing.GroupLayout(addNewGoodsPanel);
        addNewGoodsPanel.setLayout(addNewGoodsPanelLayout);
        addNewGoodsPanelLayout.setHorizontalGroup(
            addNewGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(addNewGoodsPanelLayout.createSequentialGroup()
                .addGroup(addNewGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(addNewGoodsPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(newGoodsInfoInputPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(addNewGoodsPanelLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(addNewGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(newGoodsInfoPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 612, Short.MAX_VALUE)
                            .addComponent(newGoodsInfoLabel))))
                .addGap(44, 44, 44))
            .addGroup(addNewGoodsPanelLayout.createSequentialGroup()
                .addGap(179, 179, 179)
                .addComponent(yes1)
                .addGap(166, 166, 166)
                .addComponent(cancel1)
                .addContainerGap(217, Short.MAX_VALUE))
        );
        addNewGoodsPanelLayout.setVerticalGroup(
            addNewGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, addNewGoodsPanelLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(newGoodsInfoInputPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(newGoodsInfoLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(newGoodsInfoPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addGroup(addNewGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(yes1)
                    .addComponent(cancel1))
                .addGap(251, 251, 251))
        );

        basePanel.addTab("新增商品", addNewGoodsPanel);

        deleteOldGoodsPanel.setBackground(new java.awt.Color(211, 220, 249));

        oldGoodsInfoInputPanel.setBackground(new java.awt.Color(211, 220, 249));
        oldGoodsInfoInputPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "旧商品淘汰", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        oldGoodsIDLabel.setText("淘汰商品标识：");

        oldGoodsIDText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        oldGoodsIDInput.setViewportView(oldGoodsIDText);

        showOldGoodsInfo.setText("显示商品信息");

        deleteGoods.setText("删除");
        deleteGoods.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteGoodsActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout oldGoodsInfoInputPanelLayout = new javax.swing.GroupLayout(oldGoodsInfoInputPanel);
        oldGoodsInfoInputPanel.setLayout(oldGoodsInfoInputPanelLayout);
        oldGoodsInfoInputPanelLayout.setHorizontalGroup(
            oldGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(oldGoodsInfoInputPanelLayout.createSequentialGroup()
                .addGroup(oldGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(oldGoodsInfoInputPanelLayout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(oldGoodsIDLabel)
                        .addGap(99, 99, 99)
                        .addComponent(oldGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(oldGoodsInfoInputPanelLayout.createSequentialGroup()
                        .addGap(96, 96, 96)
                        .addComponent(showOldGoodsInfo)
                        .addGap(141, 141, 141)
                        .addComponent(deleteGoods)))
                .addContainerGap(150, Short.MAX_VALUE))
        );
        oldGoodsInfoInputPanelLayout.setVerticalGroup(
            oldGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(oldGoodsInfoInputPanelLayout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addGroup(oldGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(oldGoodsIDLabel)
                    .addComponent(oldGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(26, 26, 26)
                .addGroup(oldGoodsInfoInputPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(showOldGoodsInfo)
                    .addComponent(deleteGoods))
                .addContainerGap(37, Short.MAX_VALUE))
        );

        oldGoodsListtable.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        oldGoodsListtable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "淘汰商品标识", "淘汰商品描述", "淘汰商品价格"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        oldGoodsList.setViewportView(oldGoodsListtable);

        yes2.setText("确定");
        yes2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                yes2ActionPerformed(evt);
            }
        });

        cancel2.setText("取消");

        javax.swing.GroupLayout deleteOldGoodsPanelLayout = new javax.swing.GroupLayout(deleteOldGoodsPanel);
        deleteOldGoodsPanel.setLayout(deleteOldGoodsPanelLayout);
        deleteOldGoodsPanelLayout.setHorizontalGroup(
            deleteOldGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(deleteOldGoodsPanelLayout.createSequentialGroup()
                .addGroup(deleteOldGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(deleteOldGoodsPanelLayout.createSequentialGroup()
                        .addGap(203, 203, 203)
                        .addComponent(yes2)
                        .addGap(147, 147, 147)
                        .addComponent(cancel2))
                    .addGroup(deleteOldGoodsPanelLayout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(oldGoodsInfoInputPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, deleteOldGoodsPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(oldGoodsList, javax.swing.GroupLayout.PREFERRED_SIZE, 626, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        deleteOldGoodsPanelLayout.setVerticalGroup(
            deleteOldGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(deleteOldGoodsPanelLayout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addComponent(oldGoodsInfoInputPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41)
                .addComponent(oldGoodsList, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26)
                .addGroup(deleteOldGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(yes2)
                    .addComponent(cancel2))
                .addContainerGap())
        );

        basePanel.addTab("删除商品", deleteOldGoodsPanel);

        modifyGoodsPanel.setBackground(new java.awt.Color(211, 220, 249));

        modifyGoodsInfoPanel.setBackground(new java.awt.Color(211, 220, 249));
        modifyGoodsInfoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "商品信息更改", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        modifiedGoodsIDLabel.setText("被更改商品标识：");

        modifiedGoodsIDText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        modifiedGoodsIDInput.setViewportView(modifiedGoodsIDText);

        showModifiedGoodsInfo.setText("显示商品信息");

        modify.setText("更改");
        modify.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                modifyActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout modifyGoodsInfoPanelLayout = new javax.swing.GroupLayout(modifyGoodsInfoPanel);
        modifyGoodsInfoPanel.setLayout(modifyGoodsInfoPanelLayout);
        modifyGoodsInfoPanelLayout.setHorizontalGroup(
            modifyGoodsInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(modifyGoodsInfoPanelLayout.createSequentialGroup()
                .addGroup(modifyGoodsInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(modifyGoodsInfoPanelLayout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(modifiedGoodsIDLabel)
                        .addGap(100, 100, 100)
                        .addComponent(modifiedGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(modifyGoodsInfoPanelLayout.createSequentialGroup()
                        .addGap(95, 95, 95)
                        .addComponent(showModifiedGoodsInfo)
                        .addGap(142, 142, 142)
                        .addComponent(modify)))
                .addContainerGap(136, Short.MAX_VALUE))
        );
        modifyGoodsInfoPanelLayout.setVerticalGroup(
            modifyGoodsInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(modifyGoodsInfoPanelLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(modifyGoodsInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(modifiedGoodsIDLabel)
                    .addComponent(modifiedGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(modifyGoodsInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(showModifiedGoodsInfo)
                    .addComponent(modify))
                .addContainerGap(20, Short.MAX_VALUE))
        );

        originalGoodsInfoTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null}
            },
            new String [] {
                "商品标识", "商品描述", "商品价格"
            }
        ));
        originalGoodsInfo.setViewportView(originalGoodsInfoTable);

        originalGoodsInfoLabel.setFont(new java.awt.Font("方正舒体", 0, 14));
        originalGoodsInfoLabel.setText("商品原信息");

        goodsInfoAfterModifyLabel.setFont(new java.awt.Font("方正舒体", 0, 14));
        goodsInfoAfterModifyLabel.setText("商品修改后信息");

        goodsInfoAfterModifyText.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null}
            },
            new String [] {
                "商品标识", "商品描述", "商品价格"
            }
        ));
        goodInfoAferModify.setViewportView(goodsInfoAfterModifyText);

        yes3.setText("确定");
        yes3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                yes3ActionPerformed(evt);
            }
        });

        cancel3.setText("取消");

        javax.swing.GroupLayout modifyGoodsPanelLayout = new javax.swing.GroupLayout(modifyGoodsPanel);
        modifyGoodsPanel.setLayout(modifyGoodsPanelLayout);
        modifyGoodsPanelLayout.setHorizontalGroup(
            modifyGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, modifyGoodsPanelLayout.createSequentialGroup()
                .addContainerGap(23, Short.MAX_VALUE)
                .addGroup(modifyGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(modifyGoodsPanelLayout.createSequentialGroup()
                        .addComponent(goodInfoAferModify, javax.swing.GroupLayout.DEFAULT_SIZE, 643, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(modifyGoodsPanelLayout.createSequentialGroup()
                        .addComponent(originalGoodsInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 643, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, modifyGoodsPanelLayout.createSequentialGroup()
                        .addGroup(modifyGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(goodsInfoAfterModifyLabel)
                            .addGroup(modifyGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(originalGoodsInfoLabel, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(modifyGoodsInfoPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addGap(21, 21, 21))))
            .addGroup(modifyGoodsPanelLayout.createSequentialGroup()
                .addGap(226, 226, 226)
                .addComponent(yes3)
                .addGap(130, 130, 130)
                .addComponent(cancel3)
                .addContainerGap(206, Short.MAX_VALUE))
        );
        modifyGoodsPanelLayout.setVerticalGroup(
            modifyGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(modifyGoodsPanelLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(modifyGoodsInfoPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(originalGoodsInfoLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(originalGoodsInfo, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(goodsInfoAfterModifyLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(goodInfoAferModify, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)
                .addGroup(modifyGoodsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(yes3)
                    .addComponent(cancel3))
                .addGap(28, 28, 28))
        );

        basePanel.addTab("商品变化", modifyGoodsPanel);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(basePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 681, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(basePanel, javax.swing.GroupLayout.PREFERRED_SIZE, 422, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void cancel1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancel1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cancel1ActionPerformed

private void deleteGoodsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteGoodsActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_deleteGoodsActionPerformed

private void yes2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_yes2ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_yes2ActionPerformed

private void modifyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_modifyActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_modifyActionPerformed

private void yes3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_yes3ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_yes3ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(GoodsManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(GoodsManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(GoodsManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(GoodsManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new GoodsManagement().setVisible(true);
            }
        });
    }

    
}
